#ifndef TASK_H
#define TASK_H

#include <QWidget>
#include <QString>

namespace Ui {
class Task;
}

class Task : public QWidget
{
	Q_OBJECT

public:
	explicit Task(const QString & name, QWidget *parent = 0);
	~Task();

	void setName(const QString & name);
	QString name() const;
	bool isCompleted() const;

public slots:
	void slotRename();

signals:
	void signalRemoved(Task * task);
	void signalStatusChanged(Task * task);

private slots:
	void slotChecked(bool checked);

private:
	Ui::Task *ui;
};

#endif // TASK_H
